<script setup>
  import { ref, onMounted } from 'vue'
  onMounted(() => {
    console.log("onMounted 实例化完毕");
  })

  const count = ref(0);
  function add() {
    count.value++;
  }
</script>

<template>
  <button @click="add">count:{{ count }}</button>
</template>